package com.rtx.edi.platform.job;

import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.rtx.api.annotation.RtxJobAnnotation;
import com.rtx.api.quartz.job.BaseJob;
import com.rtx.edi.platform.synctask.handler.PlTaskHandler;

@Component
@DisallowConcurrentExecution
@RtxJobAnnotation(jobName = "PlTaskQueueJob",description = "异步任务处理",cron = "0 0/1 * * * ?")
public class PlTaskQueueJob implements BaseJob {

    @Autowired
    private PlTaskHandler plTaskHandler;

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        plTaskHandler.handler();
    }
}
